package com.ruoyi.system.outto.goods.impl;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.exception.GlobalException;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.http.HttpUtils;
import com.ruoyi.system.V2.gameAttr.mapper.GameAttributeMapper;
import com.ruoyi.system.V2.goodInfo.mapper.GoodsInfoImgMapper;
import com.ruoyi.system.V2.inter.mapper.ArtRecMapper;
import com.ruoyi.system.model.domain.*;
import com.ruoyi.system.model.dto.GoodsInfoAndAttrValueDto;
import com.ruoyi.system.model.mapper.InfoImgMapper;
import com.ruoyi.system.outto.core.LCConstant;
import com.ruoyi.system.outto.core.MapUntils;
import com.ruoyi.system.outto.core.OutUrlConstant;
import com.ruoyi.system.outto.game.CommonApi;
import com.ruoyi.system.outto.game.IYX915API;
import com.ruoyi.system.outto.goods.NEWIYX915API;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.beanutils.ConvertUtils;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;

/**
 * @Author sdq
 * @Date 2022/9/1 18:05
 */
@Slf4j
@Service
public class NEWIYX915APIImpl implements NEWIYX915API {
    @Resource
    private InfoImgMapper infoImgMapper;
    @Resource
    private CommonApi commonApi;
    @Resource
    private ArtRecMapper artRecMapper;
    private static String descTitle = "xyr";

    private static String YX915URL = null;

    @Override
    public AjaxResult addGame(GoodsInfoAndAttrValueDto goodsInfoAndAttrValueDto,SalePartner sa) {
        //        AccountInfo accountInfo = new AccountInfo();
        GameAttribute gameAttribute = null;
        if(goodsInfoAndAttrValueDto.getGameName().contains("王者荣耀")){
            if(StringUtils.isEmpty(goodsInfoAndAttrValueDto.getF16())){
                throw new GlobalException("实名不能为空");
            }
            gameAttribute = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF16()));
        }else if(goodsInfoAndAttrValueDto.getGameName().contains("和平精英")){
            if(StringUtils.isEmpty(goodsInfoAndAttrValueDto.getF10())){
                throw new GlobalException("实名不能为空");
            }
            gameAttribute = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF10()));
        }else if(goodsInfoAndAttrValueDto.getGameName().contains("原神")){
            if(StringUtils.isEmpty(goodsInfoAndAttrValueDto.getF20())){
                throw new GlobalException("实名不能为空");
            }
            gameAttribute = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF20()));
        }else if(goodsInfoAndAttrValueDto.getGameName().contains("穿越火线")){
            if(StringUtils.isEmpty(goodsInfoAndAttrValueDto.getF3())){
                throw new GlobalException("实名不能为空");
            }
            gameAttribute = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF3()));
        }else if(goodsInfoAndAttrValueDto.getGameName().contains("光遇")){//=================================未配置游戏属性
            if(StringUtils.isEmpty(goodsInfoAndAttrValueDto.getF20())){
                throw new GlobalException("实名不能为空");
            }
            gameAttribute = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF20()));
        }else if(goodsInfoAndAttrValueDto.getGameName().contains("英雄联盟")){
            if(StringUtils.isEmpty(goodsInfoAndAttrValueDto.getF1())){
                throw new GlobalException("实名不能为空");
            }
            gameAttribute = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF1()));
        }else if(goodsInfoAndAttrValueDto.getGameName().contains("火影忍者")){//=================================未配置游戏属性
            if(StringUtils.isEmpty(goodsInfoAndAttrValueDto.getF20())){
                throw new GlobalException("实名不能为空");
            }
            gameAttribute = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF20()));
        }else if(goodsInfoAndAttrValueDto.getGameName().contains("枪战王者")){
            if(StringUtils.isEmpty(goodsInfoAndAttrValueDto.getF10())){
                throw new GlobalException("实名不能为空");
            }
            gameAttribute = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF10()));
        }else{
            throw new GlobalException("当前游戏暂不支持");
        }
        String conts = "";
        try{
            Map<String, Object> result = new HashMap<>();
            Map<String, Object> params = new HashMap<>();
            if("王者荣耀".equals(goodsInfoAndAttrValueDto.getGameName())){
                params.put("yxid",3);
                //区服
                if(goodsInfoAndAttrValueDto.getSystemName().contains("安卓")){
                    params.put("qu",127);
                    if(goodsInfoAndAttrValueDto.getCarrierName().contains("QQ")){
                        params.put("fu",1892);
                    }else{
                        params.put("fu",1893);
                    }
                }else{
                    params.put("qu",126);
                    if(goodsInfoAndAttrValueDto.getCarrierName().contains("Q")){
                        params.put("fu",1890);
                    }else{
                        params.put("fu",1891);
                    }
                }
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF14())) {
                    GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF14()));
                    if(gameAttribute1.getFieldName().contains("有")){
                        conts = "无防沉迷";
                    }else {
                        conts = "有防沉迷";
                    }
                }else{
                    conts = "无";
                }
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF5())) {
                    String yingxiong = "";
                    String yingxiongs = "无,艾琳,武则天,韩信,赵云,嬴政,娜可露露,橘右京";
                    String[] strings = yingxiongs.split(",");
                    List<GameAttribute> yxList = getGameAttributs(goodsInfoAndAttrValueDto.getF5());
                    if (yxList.size() > 0) {
                        for (GameAttribute gameAttribute1 : yxList) {
                            for (String s : strings) {
                                if (gameAttribute1.getFieldName().contains(s)) {
                                    yingxiong += "," + s;
                                }
                            }
                        }
                    }
                    if (StringUtils.isNotEmpty(yingxiong)) {
                        conts = conts + "&" + yingxiong.substring(1);
                    } else {
                        conts = conts + "&无";
                    }
                }
                String pfIds = "";
                pfIds = reIds(pfIds, goodsInfoAndAttrValueDto.getF9());
                pfIds = reIds(pfIds, goodsInfoAndAttrValueDto.getF10());
                pfIds = reIds(pfIds, goodsInfoAndAttrValueDto.getF11());
                pfIds = reIds(pfIds, goodsInfoAndAttrValueDto.getF12());
                pfIds = reIds(pfIds, goodsInfoAndAttrValueDto.getF15());
                List<GameAttribute> pfList = getGameAttributs(pfIds);
                String pifu = "";
                String string = "无,武则天,倪克斯神谕,活力突击,无限飓风号,全息碎影,星空梦想,天鹅之梦,大秦宣太后,杀手不太冷,鸣剑曳影,星域神启,九霄神辉,银·白咏叹调,幻阙歌,黛羽霜翎,赤影疾锋,未来机甲,幻海之心,幽冥火,幽冥之眼,金色仲夏夜,零号雷霆,时之愿境,星际治安官,时之思念,时之羁绊,神威,凤求凰,白虎志,至尊宝,大圣娶亲,零号赤焰,太华,武陵仙君,傲雪梅枪,启明星使,永曜之星,嫦娥如梦令,后羿如梦令,天狼绘梦者,天狼狩猎者,天狼运算者,天狼溯光者,梅西,时雨天司,祈雪灵祝,奔雷神使,御风骁将,寅虎御盾,寅虎展翼,寅虎心曲,寅虎赤拳,寅虎瑞焰,默契交锋女,默契交锋男,逐梦之光,逐梦之翼,逐梦之影,逐梦之音,逐梦之星,玄武志,瑞麟志,白鹤梁神女,朱雀志,青龙志,白晶晶,蜜橘之夏,烈魂,龙胆,虎魄,武圣,李逍遥,游龙清影,神奇女侠,霸王别姬女,霸王别姬男,辉光之辰,一生所爱,青春决赛季,凤凰于飞,飞衡,岱宗,幽恒,玄嵩,魔法小厨娘,冰封战神,淬星耀世,绛天战甲,乞巧织情,音你心动女,音你心动男,无双飞将,圣诞老人,真爱至上,遇见胡旋,纯白花嫁,云端筑梦师,时之彼端,时之祈愿女,时之祈愿男,百木心枪,热情桑巴,引擎之心,奇迹圣诞,挚爱之约,挚爱花嫁,补天,异界灵契,拒霜思,玉兔公主,孙行者,猪悟能,启示之音,苍穹之光,暗夜猫娘,诗语江南,龙鼓争鸣,炽阳神光,云鹰飞将,猫影幻舞,久胜战神,冠军飞将,一念神魔,云霓雀翎,黄金狮子座,黄金射手座,黄金白羊座,飞鸢探春,时之恋人男,仲夏夜之梦,海洋之心,花朝如约,天秀启明,遇见神鹿,时之奇旅,雪上飞焰,唤灵魅影,无限星赏官,天魔缭乱,绯月行,枫霜尽,前尘镜,浮生妄";
                String [] ss = string.split(",");
                if(pfList.size()>0) {
                    for (GameAttribute gameAttribute1 : pfList) {
                        if(gameAttribute1.getFieldName().contains("小乔-音你心动")){
                            gameAttribute1.setFieldName("音你心动女");
                        }
                        if(gameAttribute1.getFieldName().contains("周瑜-音你心动")){
                            gameAttribute1.setFieldName("音你心动男");
                        }
                        if(gameAttribute1.getFieldName().contains("云中君-时之祈愿")){
                            gameAttribute1.setFieldName("时之祈愿男");
                        }
                        if(gameAttribute1.getFieldName().contains("瑶-时之祈愿")){
                            gameAttribute1.setFieldName("时之祈愿女");
                        }
                        if(gameAttribute1.getFieldName().contains("兰陵王-默契交锋")){
                            gameAttribute1.setFieldName("默契交锋男");
                        }
                        if(gameAttribute1.getFieldName().contains("花木兰-默契交锋")){
                            gameAttribute1.setFieldName("默契交锋女");
                        }
                        if(gameAttribute1.getFieldName().contains("刘备-时之恋人")){
                            gameAttribute1.setFieldName("时之恋人男");
                        }
                        if(gameAttribute1.getFieldName().contains("孙尚香-时之恋人")){
                            gameAttribute1.setFieldName("时之恋人女");
                        }
                        if(gameAttribute1.getFieldName().contains("项羽-霸王别姬")){
                            gameAttribute1.setFieldName("霸王别姬男");
                        }
                        if(gameAttribute1.getFieldName().contains("虞姬-霸王别姬")){
                            gameAttribute1.setFieldName("霸王别姬女");
                        }
                        for(String s:ss){
                            if(gameAttribute1.getFieldName().contains(s.replace("·",""))){
                                pifu+=","+s;
                            }
                        }
                    }
                    if(StringUtils.isNotEmpty(pifu)) {
                        conts = conts + "&" + pifu.substring(1);
                    }
                }else{
                    conts = conts+"&无";
                }
                if(gameAttribute.getFieldName().contains("可二次实名")){
                    conts = conts+"&可二次";
                }
                if(gameAttribute.getFieldName().contains("包人脸")){
                    conts = conts+"&不可二次";
                }
                if(gameAttribute.getFieldName().contains("已删实名")){
                    conts = conts+"&不可二次";
                }
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF2())) {
                    GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF2()));
                    conts += "&" + gameAttribute1.getFieldName().replace("V", "v");
                }
            }else if("和平精英".equals(goodsInfoAndAttrValueDto.getGameName())){
                params.put("yxid",31);
                //区服
                if(goodsInfoAndAttrValueDto.getSystemName().contains("安卓")){
                    params.put("qu",263);
                    if(goodsInfoAndAttrValueDto.getCarrierName().contains("QQ")){
                        params.put("fu",2393);
                    }else{
                        params.put("fu",4716);
                    }
                }else{
                    params.put("qu",654);
                    if(goodsInfoAndAttrValueDto.getCarrierName().contains("QQ")){
                        params.put("fu",4717);
                    }else{
                        params.put("fu",4718);
                    }
                }
                conts = goodsInfoAndAttrValueDto.getSystemName()+goodsInfoAndAttrValueDto.getCarrierName();
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF6())) {
                    GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF6()));
                    if(gameAttribute1.getFieldName().contains("有")){
                        conts = conts+"&未绑定";
                    }else {
                        conts = conts+"&绑定";
                    }
                }else{
                    conts = conts+"&无";
                }
                String zaiju = "玛莎拉蒂,南瓜骑士,梦幻火箭,特斯拉吉普,特斯拉,合金龙骨,阿斯顿马丁,路特斯,兰博基尼,灵鼠银迹,鬼马凤驰,萌喵橘座,赛莎,双人摩托";
                String zj = "";
                String[] zaijus = zaiju.split(",");
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF2())){
                    List<GameAttribute> zjList = getGameAttributs(goodsInfoAndAttrValueDto.getF2());
                    for(GameAttribute gameAttribute1 : zjList){
                        String fieldName = gameAttribute1.getFieldName();
                        if(fieldName.contains("特斯拉X")){
                            fieldName = "特斯拉吉普";
                        }else if(fieldName.contains("鬼马风驰")){
                            fieldName = "鬼马凤驰";
                        }else if(fieldName.contains("塞莎")){
                            gameAttribute1.setFieldName("赛莎");
                        }else if(fieldName.contains("兰博")){
                            gameAttribute1.setFieldName("兰博基尼");
                        }
                        for(String s : zaijus){
                            if(fieldName.contains(s)){
                                zj+=","+s;
                            }
                        }
                    }
                    if(StringUtils.isNotEmpty(zj)) {
                        conts = conts + "&" + zj.substring(1);
                    }
                }else{
                    conts = conts+"&无";
                }
                String taozhuangs ="";
                String taozhuang = "蝶舞迷情,火箭少女101,雪国梦幻,守护骑士,精灵迷巫,金耀白虎,木耀青龙,水耀玄武,火耀金雀,土耀战麟,深渊皇后,宝贝奶油派,天使彩虹糖,甜心巧克力,快乐主宰,幻影战神,南瓜骑士,数码大师,星际漫游者,极限特训,怪诞乔克,银河战甲,荒野猎神,折纸暴龙,深海小丑鱼,炫紫旋律,闪光银龙,妙趣可丽,草莓生巧,海渊国主,暗夜玫瑰,圣光天使,霞光圣骑,寒光使者,薄荷物语,岚岚物语,海盐物语,香水柠檬,暖熊萌萌,绒雪飘舞,傲雪凌霜,霁雪冰心,梦幻火箭,冥河战士,深海小丑鱼,初号机款机体服,螳螂,木乃伊,奇异狩猎者";
                String[] tzs = taozhuang.split(",");
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF5())) {
                    List<GameAttribute> tzList = getGameAttributs(goodsInfoAndAttrValueDto.getF5());
                    for (GameAttribute gameAttribute1 : tzList) {
                        String fieldName = gameAttribute1.getFieldName();
                        if(fieldName.contains("雪国幻梦")){
                            fieldName = "雪国梦幻";
                        }
                        if(fieldName.contains("金曜白虎")){
                            fieldName = "金耀白虎";
                        }
                        if(fieldName.contains("木曜青龙")){
                            fieldName = "木耀青龙";
                        }
                        if(fieldName.contains("水曜玄武")){
                            fieldName = "水耀玄武";
                        }
                        if(fieldName.contains("火曜朱雀")){
                            fieldName = "火耀金雀";
                        }
                        if(fieldName.contains("土曜战麒")){
                            fieldName = "土耀战麟";
                        }
                        for (String s : tzs) {
                            if (fieldName.contains(s)) {
                                taozhuangs += "," + s;
                            }
                        }
                    }
                    if(StringUtils.isNotEmpty(taozhuangs)) {
                        conts = conts + "&" + taozhuangs.substring(1);
                    }
                }else{
                    conts=conts+"&无";
                }
                String qiang = "M416-心之恋语,UMP45-雪国精灵,M762-甜蜜誓约,98k-伏魔团,mini-龙虾霸霸,AKM-炫紫旋律,AKM-甜心宝贝,M416-五爪金龙,AKM-炫紫旋律,SCAR-L-梦幻火箭,M24-星之信仰," +
                        "DP-28-扶摇飞仙,98k-圣光天使,mg3-炙烟牛王,scar-l-甜梦小狐,UZI-筑梦精灵,DP-28-幻梦音符,AWM-橘柚青心,M762-冷魅冰骑,UMP45- 恐龙拽拽,AKM-百合蜜语,scar-l -青春物语," +
                        "sks-碧影闪光,GROZA-焦糖拿铁,M24-暗星紫秘,M762-甜心娃娃,野牛-流行咚咚,mini14-绚金瑰梦,98k -绿意幻情,M249-蓝莓炮弹,vector-红伞翩翩,MG3-洛神天一,S12K-海渊国主," +
                        "slr-暗夜玫瑰,AWM-烟龙焚天,scar-l-机甲封神,M16A4-葫芦兄弟,DP-28-枪炮玫瑰,M294-古战神甲,VSS-烈焰拳霸,AKM-梦之光华,汤姆逊-怪笑疯兔,UMP45-相思残雪,AUG-心之彼岸," +
                        "UZI-绮梦青鸾,98k-暗翼战神,scar-l-童趣迷兔,M762-激战未来,GROZA-香水柠檬,sks-诡面斩,MINI14-荧光虫舞,M416-暖熊萌萌,M249-融雪飘舞";
                String[] qiangs = qiang.split(",");
                String qxs = "";
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF1())) {
                    List<GameAttribute> qxList = getGameAttributs(goodsInfoAndAttrValueDto.getF1());
                    for(GameAttribute gameAttribute1 : qxList){
                        String fieldName = gameAttribute1.getFieldName();
                        if(fieldName.contains("Mini14-龙虾霸霸")){
                            fieldName = "mini-龙虾霸霸";
                        }else if(fieldName.contains("SCAR-梦幻火箭")){
                            fieldName = "SCAR-L-梦幻火箭";
                        }else if(fieldName.contains("DP28-扶摇飞仙")){
                            fieldName = "DP-28-扶摇飞仙";
                        }else if(fieldName.contains("MG3-炙焰牛王")){
                            fieldName = "mg3-炙烟牛王";
                        }else if(fieldName.contains("野牛-流星咚咚")){
                            fieldName = "野牛-流行咚咚";
                        }else if(fieldName.contains("MG3-洛神天依")){
                            fieldName = "MG3-洛神天一";
                        }else if(fieldName.contains("AWM-焰龙焚天")){
                            fieldName = "AWM-烟龙焚天";
                        }
                        for(String s : qiangs){
                            if(fieldName.replace("-","").replace(" ","").contains(s.replace("-","").replace(" ",""))){
                                qxs+=","+s;
                            }
                        }
                    }
                    if(StringUtils.isNotEmpty(qxs)) {
                        conts = conts + "&" + qxs.substring(1);
                    }
                }else{
                    conts = conts+"&无";
                }
                if(gameAttribute.getFieldName().contains("可二次实名")){
                    conts = conts+"&可修改实名";
                }
                if(gameAttribute.getFieldName().contains("不可二次实名")){
                    conts = conts+"&不可修改实名";
                }
                if(gameAttribute.getFieldName().contains("包人脸")){
                    conts = conts+"&可修改实名";
                }
                if(gameAttribute.getFieldName().contains("已删实名")){
                    conts = conts+"&无";
                }
            }else if("原神".equals(goodsInfoAndAttrValueDto.getGameName())) {
                params.put("yxid", 171);
                params.put("qu",616);
                params.put("fu",4375);
                if(goodsInfoAndAttrValueDto.getCarrierName().contains("哔哩哔哩")){
                    conts = "哔哩哩哔";
                }
                if(goodsInfoAndAttrValueDto.getCarrierName().contains("游戏官方")){
                    conts = "Tap(pc)";
                }
                if(goodsInfoAndAttrValueDto.getGroupName().contains("米哈游官服")){
                    conts = "米哈游（苹果）";
                }
                String juese = "无,珊瑚宫心海,雷电将军,刻晴,莫娜,七七,迪卢克,琴,阿贝多,达达利亚,钟离,温迪,可莉,甘雨,魈,胡桃,优菈,枫原万叶,神里绫华,宵宫,荒泷一斗,申鹤,八重神子,神里绫人,夜兰,提纳里,赛诺,妮露,纳西妲,迪希雅,艾尔海森,流浪者";
                String[] juses =  juese.split(",");
                String jss = "";
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF11())){
                    List<GameAttribute> jsList = getGameAttributs(goodsInfoAndAttrValueDto.getF11());
                    for(GameAttribute gameAttribute1 : jsList){
                        for(String s : juses){
                            if(gameAttribute1.getFieldName().contains(s)){
                                jss+=","+s;
                            }
                        }
                    }
                    if(StringUtils.isNotEmpty(jss)) {
                        conts = conts + "&" + jss.substring(1);
                    }
                }else{
                    conts = conts+"&无";
                }
                String wq = "无,不灭月华,薙草之稻光,天空之翼,天空之卷,天空之脊,天空之傲,风鹰剑,阿莫斯之弓,四风原典,和璞鸢,狼的末路,天空之刃,斫峰之刃,无工之剑,尘世之锁,贯虹之槊,磐岩结绿,护摩之杖,终末嗟叹之诗,雾切之回光,苍古自由之誓,松籁响起之时,飞雷之弦震,赤角石溃杵,息灾,神乐之真意,冬极白星,波乱月白经津,若水,猎人之径,赤沙之杖,圣显之钥,千叶浮梦,图莱杜拉的回忆,栽叶萃光,苇海信标";
                String[] wqs = wq.split(",");
                String wuqi = "";
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF17())){
                    List<GameAttribute> wqList = getGameAttributs(goodsInfoAndAttrValueDto.getF17());
                    for(GameAttribute gameAttribute1 : wqList){

                        for(String s:wqs){
                            if(gameAttribute1.getFieldName().contains(s)){
                                wuqi+=","+s;
                            }
                        }
                    }
                    if(StringUtils.isNotEmpty(wuqi)) {
                        conts = conts + "&" + wuqi.substring(1);
                    }
                }else{
                    conts = conts+"&无";
                }
                conts = conts+"&无";
            }else if("穿越火线".equals(goodsInfoAndAttrValueDto.getGameName())) {
                //全区=313 全服=3029
                params.put("yxid", 18);
//                params.put("qu",313);//电信
                JSONArray jsonArray = JSONArray.parseArray(getFu("52"));
                for(Object o : jsonArray){
                    if(goodsInfoAndAttrValueDto.getServerName().contains(JSONObject.parseObject(o.toString()).getString("Name"))){
                        params.put("fu",Integer.parseInt(JSONObject.parseObject(o.toString()).getString("id")));  //广东一区
                        params.put("qu",52);
                        break;
                    }
                }
                JSONArray jsonArray1 = JSONArray.parseArray(getFu("55"));
                for(Object o : jsonArray1){
                    if(goodsInfoAndAttrValueDto.getServerName().contains(JSONObject.parseObject(o.toString()).getString("Name"))){
                        params.put("fu",Integer.parseInt(JSONObject.parseObject(o.toString()).getString("id")));  //广东一区
                        params.put("qu",55);
                        break;
                    }
                }
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF8())){
                    if(Integer.parseInt(goodsInfoAndAttrValueDto.getF8())>=1&&Integer.parseInt(goodsInfoAndAttrValueDto.getF8())<=5){
                        conts ="1-5V";
                    }
                    if(Integer.parseInt(goodsInfoAndAttrValueDto.getF8())>=6&&Integer.parseInt(goodsInfoAndAttrValueDto.getF8())<=10){
                        conts ="6-10V";
                    }
                    if(Integer.parseInt(goodsInfoAndAttrValueDto.getF8())>=11&&Integer.parseInt(goodsInfoAndAttrValueDto.getF8())<=20){
                        conts ="11-20V";
                    }
                    if(Integer.parseInt(goodsInfoAndAttrValueDto.getF8())>=20&&Integer.parseInt(goodsInfoAndAttrValueDto.getF8())<=30){
                        conts ="20-30V";
                    }
                    if(Integer.parseInt(goodsInfoAndAttrValueDto.getF8())>30){
                        conts ="30V以上";
                    }
                }else {
                    conts ="无英雄武器";
                }
                String zhanqu = "华北战区,河南战区,山东战区,东北战区,华中战区,华南战区,西部战区,东部战区,江苏战区";
                String[] zhnqus = zhanqu.split(",");
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getGroupName())){
                    for(String s : zhnqus) {
                        if (goodsInfoAndAttrValueDto.getGroupName().contains(s)) {
                            conts = conts+"&"+s;
                            break;
                        }else{
                            if(goodsInfoAndAttrValueDto.getServerName().contains(s.substring(0,2))){
                                conts = conts+"&"+s;
                            }else{
                                if(goodsInfoAndAttrValueDto.getServerName().startsWith("黑")||goodsInfoAndAttrValueDto.getServerName().startsWith("吉")||goodsInfoAndAttrValueDto.getServerName().startsWith("辽")){
                                    conts = conts+"&东北战区";
                                }else if(goodsInfoAndAttrValueDto.getServerName().contains("北京")||goodsInfoAndAttrValueDto.getServerName().contains("天津")||
                                        goodsInfoAndAttrValueDto.getServerName().contains("河北")||goodsInfoAndAttrValueDto.getServerName().contains("内蒙古")){
                                    conts = conts+"&华北战区";
                                }else if(goodsInfoAndAttrValueDto.getServerName().contains("河南")||goodsInfoAndAttrValueDto.getServerName().contains("湖南")){
                                    conts = conts+"&华中战区";
                                }else if(goodsInfoAndAttrValueDto.getServerName().contains("广东")||goodsInfoAndAttrValueDto.getServerName().contains("广西")||goodsInfoAndAttrValueDto.getServerName().contains("海南")){
                                    conts = conts+"&华南战区";
                                }
                            }
                        }
                    }
                }else{
                    conts = conts+"&无";
                }
                conts = conts+"&无";
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF6())) {
                    GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF6()));
                    String dw = "无排位,新锐,精英,专家,大师,宗师,枪王,枪王之王";
                    String[] dws = dw.split(",");
                    for (String s : dws) {
                        if (gameAttribute1.getFieldName().contains(s)) {
                            conts = conts + "&" + s;
                            break;
                        }
                    }
                }else{
                    conts = conts+"&无";
                }
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF4())){
                    GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF4()));
                    if(gameAttribute1.getFieldName().contains("有")){
                        conts = conts+"&有排位资格";
                    }else {
                        conts = conts+"&无排位资格";
                    }
                }else{
                    conts = conts+"&无";
                }
                if(gameAttribute.getFieldName().contains("有修改机会")){
                    conts = conts+"&可修改实名";
                }else{
                    conts = conts+"&不可修改实名";
                }
            }else if("枪战王者".equals(goodsInfoAndAttrValueDto.getGameName())) {
                //全区=313 全服=3029
                params.put("yxid", 26);
                params.put("qu",261);//电信
                params.put("fu",2391);//广东一区
                conts = goodsInfoAndAttrValueDto.getSystemName()+goodsInfoAndAttrValueDto.getCarrierName();
                if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF10())) {
                    GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF10()));
                    if(gameAttribute1.getFieldName().contains("有修改人脸机会")){
                        conts = conts+"&可修改实名";
                    }else{
                        conts = conts+"&不可修改实名";
                    }
                }else {
                    conts = conts+"&无";
                }
            }else if("火影忍者".equals(goodsInfoAndAttrValueDto.getGameName())) {
                //全区=313 全服=3029
                params.put("yxid", 125);
                params.put("qu",313);//电信
                params.put("fu",4243);//广东一区
            }else
//                if("逆战".equals(goodsInfoAndAttrValueDto.getGameName())) {
//                //全区=313 全服=3029
//                params.put("yxid", 35);
//                if ("联通".equals(accountInfo.getRegional())){
//                    params.put("qu",238);//电信
//                    params.put("fu",2247);//
//                }
//                if ("电信".equals(accountInfo.getRegional())){
//                    params.put("qu",239);//电信
//                    params.put("fu",2248);//
//                }
//
//            }else if("QQ飞车手游".equals(accountInfo.getType())) {
//                //全区=313 全服=3029
//                params.put("yxid", 8);
//                params.put("qu",662);//电信
//                params.put("fu",4733);//广东一区
//
//            }else
                if("英雄联盟".equals(goodsInfoAndAttrValueDto.getGameName())) {
                params.put("yxid", 10);
//                params.put("qu",313);//电信
//                params.put("fu",3029);//艾欧尼亚
                JSONArray jsonArray = JSONArray.parseArray(getFu("46"));
                for(Object o : jsonArray){
                    if(goodsInfoAndAttrValueDto.getServerName().contains(JSONObject.parseObject(o.toString()).getString("Name"))){
                        params.put("fu",Integer.parseInt(JSONObject.parseObject(o.toString()).getString("id")));//艾欧尼亚
                        params.put("qu",46);//电信
                    }
                }
                JSONArray wtJsonArray = JSONArray.parseArray(getFu("48"));
                for(Object o : wtJsonArray){
                    if(goodsInfoAndAttrValueDto.getServerName().contains(JSONObject.parseObject(o.toString()).getString("Name"))){
                        params.put("fu",Integer.parseInt(JSONObject.parseObject(o.toString()).getString("id")));//艾欧尼亚
                        params.put("qu",48);//电信
                    }
                }
                JSONArray tyJsonArray = JSONArray.parseArray(getFu("49"));
                for(Object o : tyJsonArray){
                    if(goodsInfoAndAttrValueDto.getServerName().contains(JSONObject.parseObject(o.toString()).getString("Name"))){
                        params.put("fu",Integer.parseInt(JSONObject.parseObject(o.toString()).getString("id")));//艾欧尼亚
                        params.put("qu",49);//电信
                    }
                }
                JSONArray qwJsonArray = JSONArray.parseArray(getFu("50"));
                for(Object o : qwJsonArray){
                    if(goodsInfoAndAttrValueDto.getServerName().contains(JSONObject.parseObject(o.toString()).getString("Name"))){
                        params.put("fu",Integer.parseInt(JSONObject.parseObject(o.toString()).getString("id")));//艾欧尼亚
                        params.put("qu",50);//电信
                    }
                }
                JSONArray qtJsonArray = JSONArray.parseArray(getFu("51"));
                for(Object o : qtJsonArray){
                    if(goodsInfoAndAttrValueDto.getServerName().contains(JSONObject.parseObject(o.toString()).getString("Name"))){
                        params.put("fu",Integer.parseInt(JSONObject.parseObject(o.toString()).getString("id")));//艾欧尼亚
                        params.put("qu",51);//电信
                    }
                }

                    conts = conts+"&无";
                    String dw = "排位:当前赛季无,排位:英勇黄铜,排位:不屈白银,排位:荣耀黄金,排位:华贵铂金,排位:璀璨钻石V,排位:璀璨钻石IV,排位:璀璨钻石III,排位:璀璨钻石II,排位:璀璨钻石I,排位:大师,排位:最强王者";
                    String[] dws = dw.split(",");
                    String duanwei = "";
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF2())){
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF2()));
                        for(String s : dws){
                            if(s.contains(gameAttribute1.getFieldName())){
                                conts = conts+"&"+s;
                                break;
                            }
                        }
                    }else{
                        conts = conts+"&无";
                    }
                    if(gameAttribute.getFieldName().contains("有修改人脸机会")){
                        conts = conts+"&可修改实名";
                    }else{
                        conts = conts+"&不可修改实名";
                    }
            }else
//                if("绝地求生".equals(accountInfo.getType())){
//                params.put("yxid",7);
//                params.put("qu",658);
//                params.put("fu",4729);
//
//            }else
                {
                return AjaxResult.error("暂不支持此游戏");
            }

            params.put("Mode",sa.getSaleKey());//用户身份标识
            params.put("ShopID",sa.getOther()+goodsInfoAndAttrValueDto.getId());//商品编号，由数据提供方自己定义尽量特殊一点有检测  例：zm_201234567844此类以zm_开头避免和其他商户冲突
            params.put("number",goodsInfoAndAttrValueDto.getId());//账号
            params.put("pass","password");//密码
            String title = "【"+descTitle + "_" + goodsInfoAndAttrValueDto.getId() + "】  "+ gameAttribute.getFieldName() + "  " + goodsInfoAndAttrValueDto.getDes();
            params.put("title",title.length() > 200 ? title.substring(0,200) : title);//有字数限制尽量150字内
            params.put("miaoshu", StringUtils.isBlank(goodsInfoAndAttrValueDto.getDes()) ? "des":goodsInfoAndAttrValueDto.getDes());//描述
            BigDecimal bigDecimal = commonApi.addPrice(goodsInfoAndAttrValueDto.getPrice(), sa.getSeleep());
            commonApi.setPrice(bigDecimal,goodsInfoAndAttrValueDto.getId(),sa);
            params.put("price",bigDecimal.toString());//价格
            GoodsInfoImg goodsInfoImg = new GoodsInfoImg();
            goodsInfoImg.setGoodsId(goodsInfoAndAttrValueDto.getId());
            goodsInfoImg.setType(Constants.STR_1);
            List<GoodsInfoImg> infoImgs = goodsInfoImgMapper.selectGoodsInfoImgList(goodsInfoImg);
            String images = goodsInfoAndAttrValueDto.getTitleImg()==null||goodsInfoAndAttrValueDto.getTitleImg().equals("")?LCConstant.defaultImg:goodsInfoAndAttrValueDto.getTitleImg();
            if(!CollectionUtils.isEmpty(infoImgs)){
                images = images +","+ infoImgs.stream().map(GoodsInfoImg::getImgUrl).collect(Collectors.joining(","));
            }else{
                images = LCConstant.defaultImg;
            }
            params.put("img",images);//商品图片 多张图片中间逗号隔开
            params.put("Conts",conts);//账号属性传值 列子：一区&联盟&猎人&人类&男性&装备465,装备467属性参数之间&隔开，如果存在多个属性值用“,”隔开

            String paramsStr = JSONObject.toJSONString(params);
            log.info("YX915新增请求参数={}",paramsStr);
            String response = HttpUtils.sendYX915Post(OutUrlConstant.YX915ADDURL, paramsStr, "application/json");
            log.info("YX915新增返回参数={}",response);

            JSONArray resultArr = JSONObject.parseArray(response);
            JSONObject o = resultArr.getJSONObject(0);
            String msg = o.getString("msg");
            String data = o.getString("data");
            msg = MapUntils.unicodeToString(msg);
            if (!"成功".equals(msg)){
                result.put("code",500);
            }else {
                result.put("code",200);
                ArtRec artRecreq = new ArtRec();
                artRecreq.setConfig(sa.getId());
                artRecreq.setAccountId(goodsInfoAndAttrValueDto.getId());
                List<ArtRec> artRecs = artRecMapper.selectArtRecList(artRecreq);
                if(artRecs.size()>0) {
                    artRecs.get(0).setOutid(data);
                    artRecMapper.updateArtRec(artRecs.get(0));
                }else{
                    artRecreq.setAccountId(goodsInfoAndAttrValueDto.getId());
                    artRecreq.setCreateId(goodsInfoAndAttrValueDto.getCreateId());
                    artRecreq.setType(LCConstant.interAdd);
                    artRecreq.setConfig(sa.getId());
                    artRecreq.setSaleCode(sa.getSaleName());
                    artRecreq.setOutid(data);
                    artRecMapper.insertArtRec(artRecreq);
                }
            }
            result.put("req",JSONObject.toJSONString(params));
            result.put("res",response);
            result.put("msg",msg);
            return AjaxResult.success(result);
        }catch (Exception e){
            throw new GlobalException(e.getMessage());
        }
    }
    @Resource
    private GoodsInfoImgMapper goodsInfoImgMapper;
    @Resource
    private GameAttributeMapper gameAttributeMapper;

    private List<GameAttribute> getGameAttributs(String ids) {
        return gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(ids.split(","),
                Long.class));
    }
    private String reIds(String allIds, String ids) {
        if (StringUtils.isNotEmpty(ids)) {
            if (StringUtils.isNotEmpty(allIds)) {
                allIds = allIds + "," + ids;
            } else {
                allIds = ids;
            }
        }
        return allIds;
    }

    @Override
    public AjaxResult editGame(GoodsInfoAndAttrValueDto goodsInfoAndAttrValueDto,SalePartner sa) {
        try{
//            AccountInfo accountInfo = new AccountInfo();
            Map<String, Object> result = new HashMap<>();
            Map<String, Object> params = new HashMap<>();
            params.put("Mode",sa.getSaleKey());//用户身份标识
            params.put("ShopID",sa.getOther()+goodsInfoAndAttrValueDto.getId());//商品编号，由数据提供方自己定义尽量特殊一点有检测  例：zm_201234567844此类以zm_开头避免和其他商户冲突
            params.put("ShopState","1");//上下架状态（默认，上架为1，下架为6）
            params.put("ShopPrice",goodsInfoAndAttrValueDto.getPrice());
//            params.put("img","1");

            String paramsStr = JSONObject.toJSONString(params);
            log.info("YX915修改请求参数={}",paramsStr);
            String response = HttpUtils.sendYX915Post(OutUrlConstant.YX915EDITURL, paramsStr, "application/json");
            log.info("YX915修改返回参数={}",response);

            JSONArray resultArr = JSONObject.parseArray(response);
            JSONObject o = resultArr.getJSONObject(0);
            String msg = o.getString("msg");
            msg = MapUntils.unicodeToString(msg);
            if (!"成功".equals(msg)){
                result.put("code",500);
            }else {
                result.put("code",200);
            }
            result.put("req",JSONObject.toJSONString(params));
            result.put("res",response);
            result.put("msg",msg);
            return AjaxResult.success(result);
        }catch (Exception e){
            throw new GlobalException(e.getMessage());
        }
    }

    @Override
    public AjaxResult delGame(GoodsInfoAndAttrValueDto goodsInfoAndAttrValueDto,SalePartner sa) {
        try{
//            AccountInfo accountInfo = new AccountInfo();
            Map<String, Object> result = new HashMap<>();
            Map<String, Object> params = new HashMap<>();
            params.put("Mode",sa.getSaleKey());//用户身份标识
            params.put("ShopID",sa.getOther()+goodsInfoAndAttrValueDto.getId());//商品编号，由数据提供方自己定义尽量特殊一点有检测  例：zm_201234567844此类以zm_开头避免和其他商户冲突

            String paramsStr = JSONObject.toJSONString(params);
            log.info("YX915删除请求参数={}",paramsStr);
            String response = HttpUtils.sendYX915Post(OutUrlConstant.YX915DELURL, paramsStr, "application/json");
            log.info("YX915删除返回参数={}",response);

            JSONArray resultArr = JSONObject.parseArray(response);
            JSONObject o = resultArr.getJSONObject(0);
            String msg = o.getString("msg");
            msg = MapUntils.unicodeToString(msg);
            if (!"成功".equals(msg)){
                result.put("code",500);
            }else {
                result.put("code",200);
                ArtRec artRecreq = new ArtRec();
                artRecreq.setConfig(sa.getId());
                artRecreq.setAccountId(goodsInfoAndAttrValueDto.getId());
                List<ArtRec> artRecs = artRecMapper.selectArtRecList(artRecreq);
                if(artRecs.size()>0) {
                    artRecMapper.deleteArtRecById(artRecs.get(0).getId());
                }
            }
            result.put("req",JSONObject.toJSONString(params));
            result.put("res",response);
            result.put("msg",msg);
            return AjaxResult.success(result);
        }catch (Exception e){
            throw new GlobalException(e.getMessage());
        }
    }

    public static void main(String[] args) {
//        //---------新增-------
//        Map<String,Object> params = new HashMap<>();
//        params.put("yxid",3);//游戏id(魔兽世界正式服id:1 怀旧服id:166  王者id:3  和平精英id:31 )
//        params.put("Mode","3GCBfA0vUz9UHXSCW");//用户身份标识
//        params.put("ShopID","198");//商品编号，由数据提供方自己定义尽量特殊一点有检测  例：zm_201234567844此类以zm_开头避免和其他商户冲突
//        params.put("number","100010");//账号
//        params.put("pass","pass");//密码
//        params.put("qu",1);//区id
//        params.put("fu",1);//服id
//        params.put("title","title");//有字数限制尽量150字内
//        params.put("miaoshu","desc");//描述
//        params.put("price","188");//价格
//        params.put("img","1");//商品图片 多张图片中间逗号隔开
//        params.put("Conts","1");//账号属性传值 列子：一区&联盟&猎人&人类&男性&装备465,装备467属性参数之间&隔开，如果存在多个属性值用“,”隔开
//
//        System.out.println(JSONObject.toJSONString(params));
//        String baseUrl = "https://Web.api.yx915.com/yx915/Data/Add";
//        String response = HttpUtils.sendYX915Post(baseUrl, JSONObject.toJSONString(params), "application/json");
//        System.out.println(response);
//        JSONArray resultArr = JSONObject.parseArray(response);
//        JSONObject o = resultArr.getJSONObject(0);
//        String msg1 = o.getString("msg");
//        System.out.println(msg1);
        //-------------修改------------------
//        Map<String,Object> editParams = new HashMap<>();
//        editParams.put("Mode","3GCBfA0vUz9UHXSCW");//用户身份标识
//        editParams.put("ShopID","198");//商品编号，由数据提供方自己定义尽量特殊一点有检测  例：zm_201234567844此类以zm_开头避免和其他商户冲突
//        editParams.put("ShopState","1");//上下架状态（默认，上架为1，下架为6）
//        editParams.put("ShopPrice","200");
//        editParams.put("img","1");
//
//        System.out.println(JSONObject.toJSONString(editParams));
//        String editUrl = "https://Web.api.yx915.com/yx915/Data/Change";
//        String editResponse = HttpUtils.sendYX915Post(editUrl, JSONObject.toJSONString(editParams), "application/json");
//        System.out.println(editResponse);

        //------------------删除
//        Map<String,Object> delParams = new HashMap<>();
//        delParams.put("Mode","3GCBfA0vUz9UHXSCW");//用户身份标识
//        delParams.put("ShopID","198");//商品编号，由数据提供方自己定义尽量特殊一点有检测  例：zm_201234567844此类以zm_开头避免和其他商户冲突
//
//        System.out.println(JSONObject.toJSONString(delParams));
//        String delUrl = "https://Web.api.yx915.com/yx915/Data/Delete";
//        String delResponse = HttpUtils.sendYX915Post(delUrl, JSONObject.toJSONString(delParams), "application/json");
//        System.out.println(delResponse);

//        ---获取游戏
        String yx = "http://Web.api.yx915.com/AcmgSy/Post_Ac_YxName";
        String yxResponse = HttpUtils.sendYX915Post(yx, null, "application/json");
        System.out.println(yxResponse);

//        //--区
//        String quResponse = getQu("10");
//        System.out.println(quResponse);
//        //-服
//        String fuResponse = getFu("50");
//        JSONArray jsonArray = JSONArray.parseArray(fuResponse);
//        for(Object o : jsonArray){
//            System.out.println(JSONObject.parseObject(o.toString()));
//        }
        String response = getAtta("10");
        System.out.println(response);
    }

   // [{"yxid":194,"Name":"魔兽世界(巫妖王之怒)","Duan":"网络游戏"},{"yxid":1,"Name":"魔兽世界(国服)","Duan":"网络游戏"},{"yxid":166,"Name":"魔兽世界(经典怀旧服)","Duan":"网络游戏"},{"yxid":171,"Name":"原神","Duan":"手机游戏"},{"yxid":3,"Name":"王者荣耀","Duan":"手机游戏"},{"yxid":31,"Name":"和平精英(手游)","Duan":"手机游戏"},{"yxid":67,"Name":"NBA2K OL2","Duan":"网络游戏"},{"yxid":18,"Name":"穿越火线","Duan":"网络游戏"},{"yxid":26,"Name":"穿越火线(手游)","Duan":"手机游戏"},{"yxid":184,"Name":"英雄联盟手游","Duan":"手机游戏"},{"yxid":181,"Name":"eve手游国服","Duan":"手机游戏"},{"yxid":182,"Name":"星战前夜：无烬星河","Duan":"手机游戏"},{"yxid":478,"Name":"暗黑破坏神：不朽","Duan":"网络游戏"},{"yxid":192,"Name":"帝国神话","Duan":"网络游戏"},{"yxid":116,"Name":"火影忍者","Duan":"手机游戏"},{"yxid":10,"Name":"英雄联盟","Duan":"网络游戏"},{"yxid":189,"Name":"超激斗梦境","Duan":"网络游戏"},{"yxid":193,"Name":"幻塔","Duan":"手机游戏"},{"yxid":8,"Name":"QQ飞车手游","Duan":"手机游戏"},{"yxid":2,"Name":"地下城与勇士","Duan":"网络游戏"},{"yxid":175,"Name":"天涯明月刀手游","Duan":"手机游戏"},{"yxid":9,"Name":"天涯明月刀","Duan":"网络游戏"},{"yxid":17,"Name":"炉石传说","Duan":"网络游戏"},{"yxid":6,"Name":"斗战神","Duan":"网络游戏"},{"yxid":476,"Name":"诛仙世界","Duan":"网络游戏"},{"yxid":179,"Name":"永恒之塔怀旧服","Duan":"网络游戏"},{"yxid":7,"Name":"绝地求生","Duan":"网络游戏"},{"yxid":19,"Name":"第五人格","Duan":"手机游戏"},{"yxid":5,"Name":"逆水寒OL","Duan":"网络游戏"},{"yxid":172,"Name":"三国志战略版","Duan":"手机游戏"},{"yxid":173,"Name":"新天龙八部怀旧服","Duan":"网络游戏"},{"yxid":11,"Name":"阴阳师","Duan":"手机游戏"},{"yxid":13,"Name":"新天龙八部","Duan":"网络游戏"},{"yxid":14,"Name":"流放之路","Duan":"网络游戏"},{"yxid":15,"Name":"我叫MT4","Duan":"手机游戏"},{"yxid":16,"Name":"梦幻西游手游","Duan":"手机游戏"},{"yxid":20,"Name":"崩坏3","Duan":"手机游戏"},{"yxid":180,"Name":"神佑释放","Duan":"网络游戏"},{"yxid":178,"Name":"摩尔庄园手游","Duan":"手机游戏"},{"yxid":190,"Name":"新世界（new world）","Duan":"网络游戏"},{"yxid":183,"Name":"永劫无间","Duan":"网络游戏"},{"yxid":191,"Name":"暗黑破坏神2：重制版","Duan":"网络游戏"},{"yxid":21,"Name":"三国杀","Duan":"网络游戏"},{"yxid":22,"Name":"征途","Duan":"网络游戏"},{"yxid":170,"Name":"万国觉醒","Duan":"手机游戏"},{"yxid":23,"Name":"守望先锋","Duan":"网络游戏"},{"yxid":4,"Name":"剑侠情缘III","Duan":"网络游戏"},{"yxid":24,"Name":"QQ三国","Duan":"手机游戏"},{"yxid":25,"Name":"部落战争","Duan":"手机游戏"},{"yxid":27,"Name":"大话西游","Duan":"网络游戏"},{"yxid":28,"Name":"反恐精英","Duan":"网络游戏"},{"yxid":29,"Name":"航海王-燃烧意志","Duan":"手机游戏"},{"yxid":30,"Name":"剑灵","Duan":"网络游戏"},{"yxid":32,"Name":"梦三国2","Duan":"网络游戏"},{"yxid":33,"Name":"命运-冠位指定","Duan":"手机游戏"},{"yxid":34,"Name":"魔域","Duan":"网络游戏"},{"yxid":35,"Name":"逆战","Duan":"网络游戏"},{"yxid":36,"Name":"跑跑卡丁车","Duan":"网络游戏"},{"yxid":37,"Name":"奇迹","Duan":"网络游戏"},{"yxid":38,"Name":"倩女幽魂","Duan":"网络游戏"},{"yxid":39,"Name":"球球大作战","Duan":"手机游戏"},{"yxid":40,"Name":"神都夜行录","Duan":"手机游戏"},{"yxid":41,"Name":"神武手游","Duan":"网络游戏"},{"yxid":42,"Name":"时空猎人","Duan":"手机游戏"},{"yxid":43,"Name":"坦克世界","Duan":"网络游戏"},{"yxid":44,"Name":"QQ炫舞","Duan":"网络游戏"},{"yxid":45,"Name":"阿拉德之怒","Duan":"手机游戏"},{"yxid":46,"Name":"崩坏学园2","Duan":"手机游戏"},{"yxid":47,"Name":"彩虹岛","Duan":"网络游戏"},{"yxid":48,"Name":"超神学院","Duan":"手机游戏"},{"yxid":49,"Name":"楚留香","Duan":"网络游戏"},{"yxid":50,"Name":"斗破苍穹手游","Duan":"手机游戏"},{"yxid":195,"Name":"傲世龙城","Duan":"网络游戏"},{"yxid":196,"Name":"奥特曼系列OL","Duan":"网络游戏"},{"yxid":197,"Name":"斗罗大陆","Duan":"网络游戏"},{"yxid":198,"Name":"斗罗大陆：武魂觉醒","Duan":"网络游戏"},{"yxid":199,"Name":"斗罗大陆-魂师对决","Duan":"网络游戏"},{"yxid":200,"Name":"光遇","Duan":"网络游戏"},{"yxid":201,"Name":"航海王强者之路","Duan":"网络游戏"},{"yxid":202,"Name":"航海王热血航线","Duan":"网络游戏"},{"yxid":203,"Name":"黑暗之潮契约","Duan":"网络游戏"},{"yxid":204,"Name":"叫我大掌柜","Duan":"网络游戏"},{"yxid":205,"Name":"金铲铲之战","Duan":"网络游戏"},{"yxid":206,"Name":"精灵盛典","Duan":"网络游戏"},{"yxid":207,"Name":"口袋觉醒","Duan":"网络游戏"},{"yxid":208,"Name":"龙族幻想","Duan":"网络游戏"},{"yxid":209,"Name":"梦幻新诛仙","Duan":"网络游戏"},{"yxid":210,"Name":"怒火一刀","Duan":"网络游戏"},{"yxid":211,"Name":"破天一剑","Duan":"网络游戏"},{"yxid":212,"Name":"青云传","Duan":"网络游戏"},{"yxid":213,"Name":"青云诀2","Duan":"网络游戏"},{"yxid":214,"Name":"权力与纷争","Duan":"网络游戏"},{"yxid":215,"Name":"三国志幻想大陆","Duan":"网络游戏"},{"yxid":216,"Name":"神雕侠侣2","Duan":"网络游戏"},{"yxid":217,"Name":"使命召唤手游","Duan":"网络游戏"},{"yxid":218,"Name":"天姬变","Duan":"网络游戏"},{"yxid":219,"Name":"完美世界：诸神之战","Duan":"网络游戏"},{"yxid":220,"Name":"万灵山海之境","Duan":"网络游戏"},{"yxid":221,"Name":"王者之心2","Duan":"网络游戏"},{"yxid":222,"Name":"妄想山海","Duan":"网络游戏"},{"yxid":223,"Name":"我叫mt3","Duan":"网络游戏"},{"yxid":224,"Name":"我是大东家","Duan":"网络游戏"},{"yxid":225,"Name":"武林闲侠","Duan":"网络游戏"},{"yxid":226,"Name":"新葫芦兄弟","Duan":"网络游戏"},{"yxid":227,"Name":"新笑傲江湖","Duan":"网络游戏"},{"yxid":228,"Name":"驯龙物语","Duan":"网络游戏"},{"yxid":229,"Name":"烟雨江湖","Duan":"网络游戏"},{"yxid":230,"Name":"一梦江湖","Duan":"网络游戏"},{"yxid":231,"Name":"一拳超人：最强之男","Duan":"网络游戏"},{"yxid":232,"Name":"异能都市","Duan":"网络游戏"},{"yxid":233,"Name":"原始传奇","Duan":"网络游戏"},{"yxid":234,"Name":"远征2","Duan":"网络游戏"},{"yxid":235,"Name":"远征手游","Duan":"网络游戏"},{"yxid":236,"Name":"云上城之歌","Duan":"网络游戏"},{"yxid":237,"Name":"造梦西游4","Duan":"网络游戏"},{"yxid":238,"Name":"召唤英雄","Duan":"网络游戏"},{"yxid":443,"Name":"我叫MT4","Duan":"网络游戏"},{"yxid":51,"Name":"恋与制作人","Duan":"手机游戏"},{"yxid":52,"Name":"流星蝴蝶剑","Duan":"手机游戏"},{"yxid":53,"Name":"龙珠激斗","Duan":"手机游戏"},{"yxid":54,"Name":"枪神纪","Duan":"网络游戏"},{"yxid":55,"Name":"热血江湖","Duan":"手机游戏"},{"yxid":56,"Name":"圣斗士星矢手游","Duan":"手机游戏"},{"yxid":57,"Name":"蜀门手游","Duan":"手机游戏"},{"yxid":58,"Name":"天龙八部手游","Duan":"手机游戏"},{"yxid":59,"Name":"问道","Duan":"网络游戏"},{"yxid":60,"Name":"仙境传说","Duan":"网络游戏"},{"yxid":61,"Name":"御龙在天","Duan":"网络游戏"},{"yxid":62,"Name":"战舰世界","Duan":"网络游戏"},{"yxid":63,"Name":"诛仙3","Duan":"网络游戏"},{"yxid":65,"Name":"apex","Duan":"网络游戏"},{"yxid":66,"Name":"COK列王的纷争","Duan":"手机游戏"},{"yxid":68,"Name":"qq幻想世界","Duan":"网络游戏"},{"yxid":69,"Name":"qq自由幻想","Duan":"网络游戏"},{"yxid":70,"Name":"艾尔之光","Duan":"网络游戏"},{"yxid":71,"Name":"堡垒之夜","Duan":"网络游戏"},{"yxid":72,"Name":"碧蓝航线","Duan":"手机游戏"},{"yxid":73,"Name":"不良人2","Duan":"手机游戏"},{"yxid":74,"Name":"红警ol手游","Duan":"手机游戏"},{"yxid":75,"Name":"荒野行动","Duan":"手机游戏"},{"yxid":76,"Name":"皇室战争","Duan":"手机游戏"},{"yxid":77,"Name":"魂斗罗：归来","Duan":"手机游戏"},{"yxid":79,"Name":"决战平安京","Duan":"手机游戏"},{"yxid":80,"Name":"洛奇英雄传","Duan":"网络游戏"},{"yxid":81,"Name":"率土之滨","Duan":"手机游戏"},{"yxid":169,"Name":"天龙八部：归来","Duan":"网络游戏"},{"yxid":82,"Name":"冒险岛2","Duan":"网络游戏"},{"yxid":83,"Name":"使命召唤ol","Duan":"网络游戏"},{"yxid":84,"Name":"武林外传手游","Duan":"手机游戏"},{"yxid":85,"Name":"300英雄","Duan":"网络游戏"},{"yxid":86,"Name":"dota2","Duan":"网络游戏"},{"yxid":87,"Name":"FIFA-OL4","Duan":"网络游戏"},{"yxid":88,"Name":"FIFA-OL3","Duan":"网络游戏"},{"yxid":89,"Name":"第九大陆","Duan":"网络游戏"},{"yxid":90,"Name":"风暴英雄","Duan":"网络游戏"},{"yxid":91,"Name":"怪物猎人ol","Duan":"网络游戏"},{"yxid":92,"Name":"激战2","Duan":"网络游戏"},{"yxid":93,"Name":"疾风之刃","Duan":"网络游戏"},{"yxid":94,"Name":"灵山奇缘","Duan":"网络游戏"},{"yxid":95,"Name":"龙之谷","Duan":"网络游戏"},{"yxid":96,"Name":"梦幻西游2","Duan":"网络游戏"},{"yxid":97,"Name":"上古世纪","Duan":"网络游戏"},{"yxid":98,"Name":"蜀门","Duan":"网络游戏"},{"yxid":99,"Name":"天谕","Duan":"网络游戏"},{"yxid":239,"Name":"幻想神话志","Duan":"网络游戏"},{"yxid":240,"Name":"勇者养成记","Duan":"网络游戏"},{"yxid":242,"Name":"少年西游记","Duan":"网络游戏"},{"yxid":243,"Name":"天使之战","Duan":"网络游戏"},{"yxid":244,"Name":"异次元主公","Duan":"网络游戏"},{"yxid":245,"Name":"勇士与旅途","Duan":"网络游戏"},{"yxid":246,"Name":"绿色征途","Duan":"网络游戏"},{"yxid":247,"Name":"铁杆三国","Duan":"网络游戏"},{"yxid":248,"Name":"帝王荣耀","Duan":"网络游戏"},{"yxid":249,"Name":"口袋异世界","Duan":"网络游戏"},{"yxid":250,"Name":"命运战歌","Duan":"网络游戏"},{"yxid":251,"Name":"绯石之心","Duan":"网络游戏"},{"yxid":252,"Name":"新葫芦兄弟","Duan":"网络游戏"},{"yxid":253,"Name":"热血封神","Duan":"网络游戏"},{"yxid":254,"Name":"掌机小精灵","Duan":"网络游戏"},{"yxid":255,"Name":"镇魔曲","Duan":"网络游戏"},{"yxid":256,"Name":"爱琳诗篇","Duan":"网络游戏"},{"yxid":257,"Name":"飞仙诀","Duan":"网络游戏"},{"yxid":258,"Name":"黑暗光年","Duan":"网络游戏"},{"yxid":259,"Name":"绝世仙王","Duan":"网络游戏"},{"yxid":260,"Name":"仙梦奇缘","Duan":"网络游戏"},{"yxid":261,"Name":"疯妖记","Duan":"网络游戏"},{"yxid":262,"Name":"剑玲珑","Duan":"网络游戏"},{"yxid":263,"Name":"君临天下","Duan":"网络游戏"},{"yxid":264,"Name":"三国杀名将传","Duan":"网络游戏"},{"yxid":265,"Name":"谁是首富","Duan":"网络游戏"},{"yxid":266,"Name":"水浒Q传","Duan":"网络游戏"},{"yxid":267,"Name":"卧龙吟","Duan":"网络游戏"},{"yxid":268,"Name":"侠客道","Duan":"网络游戏"},{"yxid":269,"Name":"想不想修真","Duan":"网络游戏"},{"yxid":270,"Name":"小小勇者","Duan":"网络游戏"},{"yxid":271,"Name":"新神魔大陆","Duan":"网络游戏"},{"yxid":272,"Name":"暴走英雄坛","Duan":"网络游戏"},{"yxid":273,"Name":"大航海之路","Duan":"网络游戏"},{"yxid":274,"Name":"道友请留步","Duan":"网络游戏"},{"yxid":275,"Name":"剑气除魔","Duan":"网络游戏"},{"yxid":276,"Name":"巨兽战场","Duan":"网络游戏"},{"yxid":277,"Name":"萌将风云","Duan":"网络游戏"},{"yxid":278,"Name":"七雄争霸","Duan":"网络游戏"},{"yxid":279,"Name":"神谕大陆","Duan":"网络游戏"},{"yxid":280,"Name":"塔防纪元","Duan":"网络游戏"},{"yxid":281,"Name":"王者传奇","Duan":"网络游戏"},{"yxid":282,"Name":"卧龙吟2","Duan":"网络游戏"},{"yxid":283,"Name":"无极仙途","Duan":"网络游戏"},{"yxid":284,"Name":"造梦无双","Duan":"网络游戏"},{"yxid":285,"Name":"奥奇传说","Duan":"网络游戏"},{"yxid":286,"Name":"超凡之路","Duan":"网络游戏"},{"yxid":287,"Name":"大掌门2","Duan":"网络游戏"},{"yxid":288,"Name":"帝王世纪","Duan":"网络游戏"},{"yxid":289,"Name":"斗罗大陆-斗神再临","Duan":"网络游戏"},{"yxid":290,"Name":"二战风云2","Duan":"网络游戏"},{"yxid":291,"Name":"放开那三国","Duan":"网络游戏"},{"yxid":292,"Name":"幻世九歌","Duan":"网络游戏"},{"yxid":293,"Name":"烈火斩","Duan":"网络游戏"},{"yxid":294,"Name":"龙城决","Duan":"网络游戏"},{"yxid":295,"Name":"塞尔之光","Duan":"网络游戏"},{"yxid":296,"Name":"神龙战争","Duan":"网络游戏"},{"yxid":297,"Name":"天龙3D","Duan":"网络游戏"},{"yxid":298,"Name":"我的勇者","Duan":"网络游戏"},{"yxid":299,"Name":"逍遥修真","Duan":"网络游戏"},{"yxid":300,"Name":"玄中记","Duan":"网络游戏"},{"yxid":301,"Name":"永恒纪元","Duan":"网络游戏"},{"yxid":302,"Name":"造梦西游OL","Duan":"网络游戏"},{"yxid":303,"Name":"执剑江湖","Duan":"网络游戏"},{"yxid":304,"Name":"北凉悍刀行","Duan":"网络游戏"},{"yxid":305,"Name":"颤抖吧三国","Duan":"网络游戏"},{"yxid":306,"Name":"超次元觉醒","Duan":"网络游戏"},{"yxid":307,"Name":"传奇世界","Duan":"网络游戏"},{"yxid":308,"Name":"帝王三国","Duan":"网络游戏"},{"yxid":309,"Name":"敢达决战","Duan":"网络游戏"},{"yxid":310,"Name":"格斗江湖","Duan":"网络游戏"},{"yxid":311,"Name":"航海王启航","Duan":"网络游戏"},{"yxid":312,"Name":"黑月","Duan":"网络游戏"},{"yxid":313,"Name":"鸿图之下","Duan":"网络游戏"},{"yxid":314,"Name":"胡莱三国2","Duan":"网络游戏"},{"yxid":315,"Name":"火源战纪","Duan":"网络游戏"},{"yxid":316,"Name":"叫我女皇陛下","Duan":"网络游戏"},{"yxid":317,"Name":"崛起：终极王者","Duan":"网络游戏"},{"yxid":318,"Name":"卡卡保皇","Duan":"网络游戏"},{"yxid":319,"Name":"口袋进化","Duan":"网络游戏"},{"yxid":320,"Name":"梦幻契约","Duan":"网络游戏"},{"yxid":321,"Name":"末日血战","Duan":"网络游戏"},{"yxid":322,"Name":"飘渺寻仙曲","Duan":"网络游戏"},{"yxid":323,"Name":"票房大卖王","Duan":"网络游戏"},{"yxid":324,"Name":"青鸾繁华录","Duan":"网络游戏"},{"yxid":325,"Name":"去吧皮卡丘","Duan":"网络游戏"},{"yxid":326,"Name":"全民武馆","Duan":"网络游戏"},{"yxid":327,"Name":"全民主公Ⅱ","Duan":"网络游戏"},{"yxid":328,"Name":"热血街篮","Duan":"网络游戏"},{"yxid":329,"Name":"热血神剑","Duan":"网络游戏"},{"yxid":330,"Name":"荣耀崛起","Duan":"网络游戏"},{"yxid":331,"Name":"三十六计","Duan":"网络游戏"},{"yxid":332,"Name":"山海计划","Duan":"网络游戏"},{"yxid":333,"Name":"商道高手","Duan":"网络游戏"},{"yxid":334,"Name":"少年宝莲灯","Duan":"网络游戏"},{"yxid":335,"Name":"圣树唤歌","Duan":"网络游戏"},{"yxid":336,"Name":"天地劫：幽城再临","Duan":"网络游戏"},{"yxid":337,"Name":"天之禁：诸界破碎","Duan":"网络游戏"},{"yxid":338,"Name":"无尽的拉格朗日","Duan":"网络游戏"},{"yxid":339,"Name":"武道神尊","Duan":"网络游戏"},{"yxid":340,"Name":"西游女儿国","Duan":"网络游戏"},{"yxid":341,"Name":"仙灵物语","Duan":"网络游戏"},{"yxid":342,"Name":"小小枪王","Duan":"网络游戏"},{"yxid":343,"Name":"新凡人修仙传","Duan":"网络游戏"},{"yxid":344,"Name":"一千克拉女王","Duan":"网络游戏"},{"yxid":345,"Name":"永恒修仙","Duan":"网络游戏"},{"yxid":346,"Name":"御剑红尘","Duan":"网络游戏"},{"yxid":347,"Name":"真红之刃","Duan":"网络游戏"},{"yxid":348,"Name":"真牛传奇","Duan":"网络游戏"},{"yxid":349,"Name":"FIFA足球世界","Duan":"网络游戏"},{"yxid":350,"Name":"NBA英雄","Duan":"网络游戏"},{"yxid":351,"Name":"暗黑觉醒","Duan":"网络游戏"},{"yxid":352,"Name":"暗黑主宰","Duan":"网络游戏"},{"yxid":353,"Name":"奥拉星","Duan":"网络游戏"},{"yxid":354,"Name":"百世文华录","Duan":"网络游戏"},{"yxid":355,"Name":"百战斗斗堂","Duan":"网络游戏"},{"yxid":356,"Name":"苍空物语","Duan":"网络游戏"},{"yxid":357,"Name":"超神小队","Duan":"网络游戏"},{"yxid":358,"Name":"大秦帝国之帝国烽烟","Duan":"网络游戏"},{"yxid":359,"Name":"帝霸天下","Duan":"网络游戏"},{"yxid":360,"Name":"帝战","Duan":"网络游戏"},{"yxid":361,"Name":"怼怼梦三国","Duan":"网络游戏"},{"yxid":362,"Name":"放开那三国3","Duan":"网络游戏"},{"yxid":363,"Name":"非人学园","Duan":"网络游戏"},{"yxid":364,"Name":"焚天之怒","Duan":"网络游戏"},{"yxid":365,"Name":"封神召唤师","Duan":"网络游戏"},{"yxid":366,"Name":"封神之刃","Duan":"网络游戏"},{"yxid":367,"Name":"封天传","Duan":"网络游戏"},{"yxid":368,"Name":"封天决","Duan":"网络游戏"},{"yxid":369,"Name":"攻城掠地","Duan":"网络游戏"},{"yxid":370,"Name":"攻城天下","Duan":"网络游戏"},{"yxid":371,"Name":"古代战争","Duan":"网络游戏"},{"yxid":372,"Name":"灌篮高手","Duan":"网络游戏"},{"yxid":373,"Name":"汉风幻想三国2","Duan":"网络游戏"},{"yxid":374,"Name":"横扫千军","Duan":"网络游戏"},{"yxid":375,"Name":"花千骨","Duan":"网络游戏"},{"yxid":376,"Name":"幻境觉醒","Duan":"网络游戏"},{"yxid":377,"Name":"皇城传奇","Duan":"网络游戏"},{"yxid":378,"Name":"辉煌岁月","Duan":"网络游戏"},{"yxid":379,"Name":"混沌起源","Duan":"网络游戏"},{"yxid":380,"Name":"极无双","Duan":"网络游戏"},{"yxid":381,"Name":"加勒比海战姬","Duan":"网络游戏"},{"yxid":382,"Name":"家园卫士","Duan":"网络游戏"},{"yxid":383,"Name":"街机金蟾捕鱼2","Duan":"网络游戏"},{"yxid":384,"Name":"精灵物语","Duan":"网络游戏"},{"yxid":385,"Name":"九天剑仙","Duan":"网络游戏"},{"yxid":386,"Name":"九州仙剑传","Duan":"网络游戏"},{"yxid":387,"Name":"决胜足球","Duan":"网络游戏"},{"yxid":388,"Name":"决战圣殿","Duan":"网络游戏"},{"yxid":389,"Name":"绝世神功","Duan":"网络游戏"},{"yxid":390,"Name":"绝世武林","Duan":"网络游戏"},{"yxid":391,"Name":"绝世战魂：前传","Duan":"网络游戏"},{"yxid":392,"Name":"军师请布阵","Duan":"网络游戏"},{"yxid":393,"Name":"开心斗三国","Duan":"网络游戏"},{"yxid":394,"Name":"恋舞OL","Duan":"网络游戏"},{"yxid":395,"Name":"龙腾传世","Duan":"网络游戏"},{"yxid":396,"Name":"龙武","Duan":"网络游戏"},{"yxid":397,"Name":"龙之谷2","Duan":"网络游戏"},{"yxid":398,"Name":"绿茵奇迹","Duan":"网络游戏"},{"yxid":399,"Name":"漫威对决","Duan":"网络游戏"},{"yxid":400,"Name":"萌侠挂机","Duan":"网络游戏"},{"yxid":401,"Name":"梦幻宠物联盟","Duan":"网络游戏"},{"yxid":402,"Name":"名将之路","Duan":"网络游戏"},{"yxid":403,"Name":"魔镜物语","Duan":"网络游戏"},{"yxid":404,"Name":"魔天记","Duan":"网络游戏"},{"yxid":405,"Name":"魔域传说","Duan":"网络游戏"},{"yxid":406,"Name":"魔域口袋版","Duan":"网络游戏"},{"yxid":407,"Name":"末日来袭","Duan":"网络游戏"},{"yxid":408,"Name":"末日围城","Duan":"网络游戏"},{"yxid":409,"Name":"暮光起源","Duan":"网络游戏"},{"yxid":410,"Name":"你来嘛英雄","Duan":"网络游戏"},{"yxid":411,"Name":"怒斩屠龙","Duan":"网络游戏"},{"yxid":412,"Name":"啪啪三国","Duan":"网络游戏"},{"yxid":413,"Name":"霹雳决","Duan":"网络游戏"},{"yxid":414,"Name":"奇幻森林岛","Duan":"网络游戏"},{"yxid":415,"Name":"前方高能","Duan":"网络游戏"},{"yxid":416,"Name":"全民学霸","Duan":"网络游戏"},{"yxid":417,"Name":"全民养成之女皇陛下","Duan":"网络游戏"},{"yxid":418,"Name":"拳魂觉醒","Duan":"网络游戏"},{"yxid":419,"Name":"热血新手村","Duan":"网络游戏"},{"yxid":420,"Name":"山海之痕","Duan":"网络游戏"},{"yxid":421,"Name":"闪烁之光","Duan":"网络游戏"},{"yxid":422,"Name":"少年御灵师","Duan":"网络游戏"},{"yxid":423,"Name":"神雕侠侣2","Duan":"网络游戏"},{"yxid":424,"Name":"神都探奇","Duan":"网络游戏"},{"yxid":425,"Name":"神将三国","Duan":"网络游戏"},{"yxid":426,"Name":"神之刃","Duan":"网络游戏"},{"yxid":427,"Name":"圣剑神域","Duan":"网络游戏"},{"yxid":428,"Name":"圣翼传说","Duan":"网络游戏"},{"yxid":429,"Name":"守望英雄","Duan":"网络游戏"},{"yxid":430,"Name":"水煮三国","Duan":"网络游戏"},{"yxid":431,"Name":"塔塔帝国","Duan":"网络游戏"},{"yxid":432,"Name":"坦克风云","Duan":"网络游戏"},{"yxid":433,"Name":"坦克世界闪击战","Duan":"网络游戏"},{"yxid":434,"Name":"坦克争锋","Duan":"网络游戏"},{"yxid":435,"Name":"天空的魔幻城","Duan":"网络游戏"},{"yxid":436,"Name":"天空之息","Duan":"网络游戏"},{"yxid":437,"Name":"天使纪元","Duan":"网络游戏"},{"yxid":438,"Name":"天天驯兽师","Duan":"网络游戏"},{"yxid":439,"Name":"王城英雄","Duan":"网络游戏"},{"yxid":440,"Name":"王者国度","Duan":"网络游戏"},{"yxid":441,"Name":"我的帝国","Duan":"网络游戏"},{"yxid":442,"Name":"我的女神","Duan":"网络游戏"},{"yxid":444,"Name":"我在江湖","Duan":"网络游戏"},{"yxid":445,"Name":"无双帝国","Duan":"网络游戏"},{"yxid":446,"Name":"无双魏蜀吴","Duan":"网络游戏"},{"yxid":447,"Name":"五行降妖师","Duan":"网络游戏"},{"yxid":448,"Name":"武侠Q传","Duan":"网络游戏"},{"yxid":449,"Name":"仙侠神域","Duan":"网络游戏"},{"yxid":450,"Name":"仙语奇缘","Duan":"网络游戏"},{"yxid":451,"Name":"仙元天下","Duan":"网络游戏"},{"yxid":452,"Name":"小虾米闯江湖","Duan":"网络游戏"},{"yxid":453,"Name":"心舞","Duan":"网络游戏"},{"yxid":454,"Name":"星辰奇缘","Duan":"网络游戏"},{"yxid":455,"Name":"星界幻想","Duan":"网络游戏"},{"yxid":456,"Name":"星空大陆","Duan":"网络游戏"},{"yxid":457,"Name":"星空时代","Duan":"网络游戏"},{"yxid":458,"Name":"寻秦","Duan":"网络游戏"},{"yxid":459,"Name":"延禧攻略之凤凰于飞","Duan":"网络游戏"},{"yxid":460,"Name":"阴阳界","Duan":"网络游戏"},{"yxid":461,"Name":"英雄棋士团","Duan":"网络游戏"},{"yxid":462,"Name":"永恒仙域","Duan":"网络游戏"},{"yxid":463,"Name":"预言世界","Duan":"网络游戏"},{"yxid":464,"Name":"战谷","Duan":"网络游戏"},{"yxid":465,"Name":"战机","Duan":"网络游戏"},{"yxid":466,"Name":"镇魂街：武神躯","Duan":"网络游戏"},{"yxid":467,"Name":"诸王黎明","Duan":"网络游戏"},{"yxid":468,"Name":"卓越传说","Duan":"网络游戏"},{"yxid":469,"Name":"关于我转生变成史莱姆这档事","Duan":"网络游戏"},{"yxid":470,"Name":"江湖悠悠","Duan":"网络游戏"},{"yxid":471,"Name":"庆余年","Duan":"网络游戏"},{"yxid":472,"Name":"守护神域","Duan":"网络游戏"},{"yxid":473,"Name":"无悔华夏","Duan":"网络游戏"},{"yxid":474,"Name":"战神蚩尤","Duan":"网络游戏"},{"yxid":475,"Name":"重返帝国","Duan":"网络游戏"},{"yxid":100,"Name":"新寻仙","Duan":"网络游戏"},{"yxid":101,"Name":"英魂之刃","Duan":"网络游戏"},{"yxid":102,"Name":"永恒之塔","Duan":"网络游戏"},{"yxid":103,"Name":"战地之王","Duan":"网络游戏"},{"yxid":104,"Name":"醉逍遥","Duan":"网络游戏"},{"yxid":105,"Name":"NBA-LIVE","Duan":"手机游戏"},{"yxid":106,"Name":"QQ炫舞手游","Duan":"手机游戏"},{"yxid":107,"Name":"苍之纪元","Duan":"手机游戏"},{"yxid":108,"Name":"大唐无双","Duan":"手机游戏"},{"yxid":109,"Name":"大天使之剑H5","Duan":"手机游戏"},{"yxid":110,"Name":"弹弹堂手游","Duan":"手机游戏"},{"yxid":111,"Name":"电击文库-零境交错","Duan":"手机游戏"},{"yxid":112,"Name":"放开那三国2","Duan":"手机游戏"},{"yxid":113,"Name":"放置奇兵","Duan":"手机游戏"},{"yxid":114,"Name":"风之大陆","Duan":"手机游戏"},{"yxid":115,"Name":"光明勇士","Duan":"手机游戏"},{"yxid":117,"Name":"剑与家园","Duan":"手机游戏"},{"yxid":118,"Name":"决斗之城","Duan":"手机游戏"},{"yxid":119,"Name":"克鲁赛德战记","Duan":"手机游戏"},{"yxid":120,"Name":"口袋妖怪复刻","Duan":"手机游戏"},{"yxid":121,"Name":"龙之谷手游","Duan":"手机游戏"},{"yxid":122,"Name":"梦幻模拟战","Duan":"手机游戏"},{"yxid":123,"Name":"梦幻诛仙","Duan":"手机游戏"},{"yxid":124,"Name":"明日之后","Duan":"手机游戏"},{"yxid":125,"Name":"女神联盟2","Duan":"手机游戏"},{"yxid":126,"Name":"秦时明月","Duan":"手机游戏"},{"yxid":127,"Name":"全民飞机大战","Duan":"手机游戏"},{"yxid":128,"Name":"全民枪战","Duan":"手机游戏"},{"yxid":129,"Name":"战舰少女R","Duan":"手机游戏"},{"yxid":130,"Name":"最强NBA","Duan":"手机游戏"},{"yxid":131,"Name":"NBA篮球大师","Duan":"手机游戏"},{"yxid":132,"Name":"傲视霸主","Duan":"手机游戏"},{"yxid":133,"Name":"攻城三国","Duan":"手机游戏"},{"yxid":134,"Name":"海岛奇兵","Duan":"手机游戏"},{"yxid":135,"Name":"火影忍者ol","Duan":"手机游戏"},{"yxid":136,"Name":"机动战队","Duan":"手机游戏"},{"yxid":137,"Name":"剑侠世界2","Duan":"手机游戏"},{"yxid":138,"Name":"江湖X：汉家江湖","Duan":"手机游戏"},{"yxid":139,"Name":"街篮","Duan":"手机游戏"},{"yxid":140,"Name":"猎魂觉醒","Duan":"手机游戏"},{"yxid":141,"Name":"叛逆性百万亚瑟王","Duan":"手机游戏"},{"yxid":142,"Name":"破晓奇兵","Duan":"手机游戏"},{"yxid":143,"Name":"热血战神丨热血沙城","Duan":"手机游戏"},{"yxid":144,"Name":"圣斗士星矢：重生","Duan":"手机游戏"},{"yxid":145,"Name":"时之歌","Duan":"手机游戏"},{"yxid":146,"Name":"侍魂：胧月传说","Duan":"手机游戏"},{"yxid":147,"Name":"数码宝贝：相遇","Duan":"手机游戏"},{"yxid":148,"Name":"天书奇谈","Duan":"手机游戏"},{"yxid":149,"Name":"天天打波利","Duan":"手机游戏"},{"yxid":150,"Name":"天天酷跑","Duan":"手机游戏"},{"yxid":151,"Name":"天下手游","Duan":"手机游戏"},{"yxid":152,"Name":"王国纪元","Duan":"手机游戏"},{"yxid":153,"Name":"王牌御史","Duan":"手机游戏"},{"yxid":154,"Name":"仙凡幻想","Duan":"手机游戏"},{"yxid":155,"Name":"新斗罗大陆","Duan":"手机游戏"},{"yxid":159,"Name":"血族blodline","Duan":"手机游戏"},{"yxid":160,"Name":"影之诗","Duan":"手机游戏"},{"yxid":161,"Name":"永恒纪元：戒","Duan":"手机游戏"},{"yxid":162,"Name":"御剑情缘","Duan":"手机游戏"},{"yxid":163,"Name":"约战：精灵再临","Duan":"手机游戏"},{"yxid":174,"Name":"专用链接","Duan":"网络游戏"}]

    static String getQu(String yxId){
        Map<String,Object> qu = new HashMap<>();
        qu.put("Mode","3GCBfA0vUz9UHXSCW");//用户身份标识
        qu.put("yxid",yxId);
        String quUrl = "https://Web.api.yx915.com/AcmgSy/Post_Ac_NumberQu";
        String quResponse = HttpUtils.sendYX915Post(quUrl, JSONObject.toJSONString(qu), "application/json");
        return quResponse;
    }
    static String getFu(String quId){
        Map<String,Object> fu = new HashMap<>();
        fu.put("Mode","3GCBfA0vUz9UHXSCW");//用户身份标识
        fu.put("quid",quId);
        String fuUrl = "https://Web.api.yx915.com/AcmgSy/Post_Ac_NumberFu";
        String fuResponse = HttpUtils.sendYX915Post(fuUrl, JSONObject.toJSONString(fu), "application/json");
        return fuResponse;
    }

    static String getAtta(String yxId){
        Map<String,Object> fu = new HashMap<>();
        fu.put("Mode","3GCBfA0vUz9UHXSCW");//用户身份标识
        fu.put("yxid",yxId);
        String fuUrl = "https://Web.api.yx915.com/AcmgSy/Post_Ac_NumberAttr";
        String fuResponse = HttpUtils.sendYX915Post(fuUrl, JSONObject.toJSONString(fu), "application/json");
        return fuResponse;
    }
}
